package com.cy1;

import java.util.ArrayList;
import java.util.Iterator;

/**
 * @author CY
 * @date 2022/09/19 14:37
 **/
public class StudentDemo {
    public static void main(String[] args) {
//        ArrayList<Student> list = new ArrayList<>();
//        list.add(new Student("chenong", 25, 100.0));
//        list.add(new Student("yuanxiang", 24, 150.0));
//        list.add(new Student("wife", 25, 200.0));
//        for (Student student : list) {
//            System.out.println(student);
//        }
        ArrayList<Character> characters = new ArrayList<>();
        characters.add('c');
        characters.add('o');
        characters.add('m');
        characters.add('e');
        ArrayList<Character> characters2 = new ArrayList<>();
        String s="welcome to bit";
        for (int i = 0; i < s.length(); i++) {
            char c = s.charAt(i);
            if(!characters.contains(c)){
                characters2.add(c);
            }
        }
        Iterator<Character> iterator = characters2.iterator();
        while (iterator.hasNext()) {
            System.out.print(iterator.next());
        }


    }
}
